package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CBranchinfoDao;
import gov.ccswj.modules.ccbusiness.entity.CBranchinfoEntity;
import gov.ccswj.modules.ccbusiness.service.CBranchinfoService;



@Service("cBranchinfoService")
public class CBranchinfoServiceImpl implements CBranchinfoService {
	@Autowired
	private CBranchinfoDao cBranchinfoDao;
	
	@Override
	public CBranchinfoEntity queryObject(Integer id){
		return cBranchinfoDao.queryObject(id);
	}
	
	@Override
	public List<CBranchinfoEntity> queryList(Map<String, Object> map){
		return cBranchinfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cBranchinfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CBranchinfoEntity cBranchinfo){
		cBranchinfoDao.save(cBranchinfo);
	}
	
	@Override
	public void update(CBranchinfoEntity cBranchinfo){
		cBranchinfoDao.update(cBranchinfo);
	}
	
	@Override
	public void delete(Integer id){
		cBranchinfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cBranchinfoDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cBranchinfoDao.delete(entname);
		
	}
}
